package com.hydl.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hydl.power.pojo.CabinetDevice;
import com.hydl.power.pojo.Circuit;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wxx
 * @since 2021-03-03
 */
public interface CircuitMapper extends BaseMapper<Circuit> {


    CabinetDevice getCabinetDeviceNumber(String cabinetId, String projectId, String powerRoomId);

    List<Circuit> getDeviceList(String cabinetId);

    void addCircuit(Circuit circuit);

    void updateCircuit(Integer id, String name, String cabinetId, String projectId, String projectName, String powerRoomId, String powerRoomName);

    void deleteCircuit(Integer id);

    List<Circuit> getCircuitByCabinetId(String cabinetId);

    Circuit getCircuitById(Integer id);
}
